using System.Collections.Generic;
using UnityEngine;

namespace XProject
{
    public class GlobalConfig
    {
        private static GlobalConfig _instance;

        public static GlobalConfig Instance
        {
            get
            {
                if (_instance == null)
                {
                    _instance = new GlobalConfig();
                }
                return _instance;
            }
        }
        public static VersionJson curVersionInfo { get; set; }

        public static ResInfoSet curVerionABinfoSet { get; set; }

        public static HashSet<string> cruVerAllABName { get; set; }

        private Transform _UIParent = null;
        public Transform UIParent
        {
            get
            {
                if (_UIParent == null)
                {
                    _UIParent = GameObject.Find("Canvas/UIPos").transform;
                }
                return _UIParent;
            }
        }


        private Transform _OBJParent = null;
        public Transform OBJParent
        {
            get
            {
                if (_OBJParent == null)
                {
                    _OBJParent = GameObject.Find("OBJPos").transform;
                }
                return _OBJParent;
            }
        }
    }
}